package com.orangeumbrella;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.easylib.base.BaseActivity;
import com.easylib.utils.ToastUtils;

import butterknife.Bind;
import butterknife.OnClick;

public class InputActivity extends BaseActivity {

    @Bind(R.id.tv_back)
    TextView tvBack;
    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.tv_submit)
    TextView tvSubmit;
    @Bind(R.id.et_content)
    EditText etContent;
    @Bind(R.id.activity_refuse)
    LinearLayout activityRefuse;
    private String title;

    @Override
    public int getContentViewId() {
        return R.layout.activity_input;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
    }

    @Override
    protected void initVariable() {
        title = getIntent().getStringExtra("title");
    }

    @Override
    protected void processLogic(Bundle savedInstanceState) {
        tvTitle.setText(title);

    }

    @OnClick({R.id.tv_back, R.id.tv_submit})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_back:
                finish();
                break;
            case R.id.tv_submit:
                ToastUtils.showToast("发送成功");
                break;
        }
    }
}
